package org.lwd.datalink.service.impl;

import org.lwd.datalink.domain.worker.WorkerJvmStateInfo;
import org.lwd.datalink.mapper.WorkerJvmStateMapper;
import org.lwd.datalink.service.WorkerJvmStateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * worker机器JVM状态统计
 *
 * @Author: weidong.lin
 * @Date: create in 2024/4/9 14:44
 */
@Service
public class WorkerJvmStateServiceImpl implements WorkerJvmStateService {

    @Resource
    private WorkerJvmStateMapper workerJvmStateMapper;


    @Override
    public Boolean insert(WorkerJvmStateInfo jvmMonitorInfo) {
        Integer num = workerJvmStateMapper.insert(jvmMonitorInfo);
        return num > 0;
    }
}
